package com.totoro.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author TOTORO
 * @date 2021/8/27 16:23
 * 聊天记录
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class SuViceChat extends PublicAttr{
    private int id;
    private int smId;
    private String chatText;
    private int sendType;
    private int fromUid;
    private int toUid;
    private int fromStatus;
    private int toStatus;

    private String groupTime;

    public SuViceChat(String chatText) {
        this.chatText = chatText;
    }

    public SuViceChat(int smId, String chatText, int sendType, int fromUid, int toUid, int fromStatus, int toStatus) {
        this.smId = smId;
        this.chatText = chatText;
        this.sendType = sendType;
        this.fromUid = fromUid;
        this.toUid = toUid;
        this.fromStatus = fromStatus;
        this.toStatus = toStatus;
    }
}
